<?php
require_once('Zend/Form.php');

class Extension_Form extends Zend_Form
{
    public function init()
    {
        if ($translator = $this->getView()->getHelper('translate')->getTranslator()) {
            $this->setDefaultTranslator($translator);
        }
    }

    public function setName($name)
    {
        parent::setName($name);
        $this->getView()->$name = $this;
    }
}